package main

import "fmt"

func main() {
	var patientMap map[int]string
	patientMap = make(map[int]string)
	patientMap[1] = "tom"
	patientMap[2] = "jack"
	patientMap[3] = "lala"
	i := len(patientMap)
	fmt.Println(patientMap)
	fmt.Println(i)

	s := patientMap[2]
	fmt.Println(s)
	patientMap[2] = "jack2"
	s = patientMap[2]
	fmt.Println(s)

	for k, v := range patientMap {
		fmt.Printf("patientMap: k=%d, v=%s\n", k, v)
	}

}
